package com.ssy.lingxi.member.merchant.model.vo.maintenance.request;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 会员能力 - 新增会员角色接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-04-02
 */
public class MemberAbilityRoleAddVO implements Serializable {
    private static final long serialVersionUID = 5469778009408797719L;

    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    @Size(max = 20, message = "角色名称最长20个字符")
    private String roleName;

    /**
     * 角色描述
     */
    @Size(max = 120, message = "角色描述最长120个字符")
    private String remark;

    /**
     * 是否具有IM即时通信权限
     */
    @NotNull(message = "IM权限参数不能为空")
    private Boolean imFlag;

    /**
     * 菜单及数据权限列表
     */
    @Valid
    private List<MemberAbilityDataAuthVO> auth;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<MemberAbilityDataAuthVO> getAuth() {
        return auth;
    }

    public void setAuth(List<MemberAbilityDataAuthVO> auth) {
        this.auth = auth;
    }

    public Boolean getImFlag() {
        return imFlag;
    }

    public void setImFlag(Boolean imFlag) {
        this.imFlag = imFlag;
    }
}
